//@ts-ignore
import * as lib from "libp7zip.so";

export class Compress {
  static compressToPath(src: string, dest: string): Promise<void> {
    return lib.Compress.compressToPath(src, dest);
  }

  static compressToPathEncrypted(src: string, dest: string, passwd: string): Promise<void> {
    return lib.Compress.compressToPathEncrypted(src, dest, passwd);
  }

  static compressWithPreset(srcPath: string, createPath: string, passwd: string, level: number): Promise<void> {
    return lib.Compress.compressWithPreset(srcPath, createPath, passwd, level);
  }
}